package cn.ce.platform.intercept;

import java.util.List;
import java.util.Map;

import cn.ce.core.aop.AopContext;
import cn.ce.core.meta.PageIntercept;
import cn.ce.core.toolbox.Func;
import cn.ce.core.toolbox.support.BladePage;

public class EquipmentInfoIntercept extends PageIntercept {

	@SuppressWarnings("unchecked")
	@Override
	public void queryAfter(AopContext ac) {
		BladePage<Map<String, Object>> page = (BladePage<Map<String, Object>>) ac.getObject();
		List<Map<String, Object>> list = page.getRows();
		for (Map<String, Object> map : list) {
			map.put("tId", Func.getDictName(103, map.get("tId")));
		}
	}
}
